import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("recharge_option", { schema: "charge" })
export class RechargeOption {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("decimal", {
    name: "amount",
    comment: "充值金额",
    precision: 6,
    scale: 2,
    default: () => "'0.00'",
  })
  amount: string;

  @Column("decimal", {
    name: "reward",
    comment: "奖励金额",
    precision: 6,
    scale: 2,
    default: () => "'0.00'",
  })
  reward: string;
}
